﻿<Window x:Class="MyEnergy.OptionsWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" SizeToContent="WidthAndHeight"
    Title="MyEnergy - Settings" ResizeMode="NoResize" Style="{DynamicResource WindowStyle}"
    WindowStartupLocation="CenterOwner">
    
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="2*" />
        </Grid.ColumnDefinitions>
        
        <Grid.RowDefinitions>
            <RowDefinition Height="30"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>
        
        <Label Foreground="White" Content="IP:" Grid.Column="0" Grid.Row="0" VerticalAlignment="Center"/>
        <TextBox Name="ipTxt" Grid.Column="1" Grid.Row="0" Margin="5" Width="150"/>
        
        <Label Foreground="White" Content="Port:" Grid.Column="0" Grid.Row="1" VerticalAlignment="Center"/>
        <TextBox Name="portTxt" Grid.Column="1" Grid.Row="1" Margin="5" Width="150"/>
        
        <Button Name="okBtn" Content="OK" Margin="5" Grid.Row="2" Grid.Column="0" HorizontalAlignment="Left" Width="60" Click="okBtn_Click" IsDefault="True" />
        <Button Name="cancelBtn" Content="Cancel" Margin="5" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Right" Width="60" IsCancel="True" />
    </Grid>
    
</Window>
